JC-2304 Lighting Controller communication driver

 

JC-2304 Lighting Controller Communication Driver is the driver to communicate with JC-2304 or JC-2303  of JoongAng Control CO., LTD. in Korea.

1. Read settings

 

<Figure 1> is read setting example of JC-2304 Lighting Controller communication driver .

 

 
<Figure 1>  Read setting example of JC-2304 Lighting Controller communication driver

 

Device Setting of <Figure 1> are input, Com Port(COM1), Com Speed(19200), Parity Bit(0), Data Bit(8), Stop Bit(1).

 

 

JC-2304 Lighting Controller communication driver read schedule

Read schedule setting parameters are as follows:

1) STATION – Desdination Address = 1 ~ 250.

2) Read Command – Command = RELAY, DIM, GROUP, PATTERN, SCENE, VOLT, CURR, ENERGY, PHOTO, WATT. (Refer to <Table 1>)

3) Read Start Address – don't care.

4) Save Start Address for Communication Server – saveing start address of Communication Server.

5) Read Size – read size .

 

Read schedule example)

READ, 1, RELAY, 0, 0, 1,
READ, 1, GROUP, 0, 50, 1,

 

<Table 1> is a description of read commands type and stored values of JC-2304 Lighting Controller communication driver.

Read Command Content
RELAY Read of Relay Status
DIM Read of Dimmer Status
GROUP Read of Group Status
PATTERN Read of Pattern Status
SCENE Read of Scene Status
VOLT Read of Voltage
CURR Read of Current
ENERGY Read of Electric Energy
PHOTO Read of Photo Sensor Status
WATT Read of Electric Watt
<Table 1> Read commands type and stored values of JC-2304 Lighting Controller Communication Driver
2. Write settings

You can control the Relay, Group, etc values of JC-2304 by using write commands.

 

Bit write 

Bit write setting parameters are as follows:

1) PORT : Port no. (0 ~ 255)

2) STATION : Desdination Address = 1 ~ 250.

3) ADDRESS : Address of Relay, Group, Pattern, Pattern, etc. (10 digit). range = 0 ~ 255 or 0 ~ 512(for JC-2303 RELAY command).  (refer to <Table 2>)

4) EXTRA 1 : Write Command = RELAY, DIM, GROUP, PATTERN, SCENE, EVENT, POWER, SMART.

5) EXTRA 2 : don't care.

 

Write example 1)

PORT:0,  station:1, ADDRESS:0000, Extra1:RELAY, Extra : 0

The setting parameter shown above is an example of bit write for control(ON/OFF) R1 Relay of JC-2304 Controller connected with 0 port, set to 1 Destination Address.

 

Write example 2)

PORT:0,  station:1, ADDRESS:0005, Extra1:RELAY, Extra : 0

The setting parameter shown above is an example of bit write for control(ON/OFF) R6 Relay of JC-2304 Controller connected with 0 port, set to 1 Destination Address.

 

Write example 3)

PORT:0,  station:1, ADDRESS:0014, Extra1:GROUP, Extra : 0

The setting parameter shown above is an example of bit write for control(ON/OFF) G15 Group Relay of JC-2304 Controller connected with 0 port, set to 1 Destination Address.

 

<Table 2> is a description of write commands and range of the write value for JC-2304 Lighting Controller communication driver.

Write Command Content Range of ADDRESS Range of Write Value
RELAY Relay control 0 ~ 127 1 = ON, 0 = OFF
DIM Write of Dimmer value 1 ~ 128 0 ~ 100, (100 = ON, 0 = OFF)
GROUP Group Relay control 1 ~ 255 1 = ON, 0 = OFF
PATTERN Pattern control 1 ~ 128 1 = ON, 0 = OFF
SCENE Write of Scene 1 ~ 128 1 = ON, 0 = OFF
POWER Power Detect control don't care 1 = blackout, 0 = restoration
<Table 2> Write commands and range of the write value for JC-2304 Lighting Controller communication driver

 

Word Write

Word write and bit write have the same setting parameters except output value.